package com.event;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;

/**
 * Copyright (c)  by www.leya920.com
 * All right reserved.
 * Create Date: 2021-01-03 11:26
 * Create Author: xuweiwei
 * File Name: MyEventPublish.java
 * Last version:  1.0
 * Function: //TODO
 * Last Update Date: 2021-01-03 11:26
 * Last Update Log:
 * Comment: //TODO
 **/
@Component
public class MyEventPublish {

	@Autowired
	private ApplicationContext myEvent;

	public void publish(){
		myEvent.publishEvent(new MyEvent(this,"呵呵哒"));
	}
}
